<?php
use app\common\middleware\AccessCheck;
use app\common\middleware\Authority;
use app\common\middleware\MethodCheck;
use think\middleware\SessionInit;

// 中间件配置
return [
    // 别名或分组
    'alias' => [
        'access'  => AccessCheck::class,
        'method' => MethodCheck::class,
        'authority' => Authority::class
    ],
    'priority' => [
        SessionInit::class,
        Authority::class,
        'method',
        'access',
    ],
    // 全局请求缓存
    // \think\middleware\CheckRequestCache::class,
    // 多语言加载
    // \think\middleware\LoadLangPack::class,
    // Session初始化
    // SessionInit::class,
];
